<?php
$stt = 0;  
foreach($this->data as $item) {
    $stt++;
    ?>
    <div class='list_item'>
        <div class='item_status'><?php echo $stt; ?></div>
        <div class='item_data'>
            <div class='item_title'><a href='<?php echo $this->base; ?>/admin/user/edit/id/<?php echo $item[id]; ?>' title='Edit this user'><?php echo $item[username]; ?></a></div>
            <?php
                if($item['level'] == 2){
                    echo "<div class='item_info'>Admin</div>";
                }
                else
                {
                    echo "<div class='item_info'>Member</div>";
                }
            ?>
        </div>
        <div class='item_actions'>
            <a href='<?php echo $this->base; ?>/admin/user/edit/id/<?php echo $item[id]; ?>' title='Edit this user'><img src='<?php echo $this->base; ?>/application/templates/admin/img/icon_edit.gif' alt='Edit this user' /></a>
            <a href='#' onclick=check_del(<?php echo $item['id']; ?>)' title='Delete this user')><img src='<?php echo $this->base; ?>/application/templates/admin/img/icon_delete.gif' alt='Delete this user' /></a>
        </div>
    </div>
<?php } ?>
<div  class="pagination">
<?php echo $this->paginationControl($this->data,
                                    'Sliding',
                                    'pagination.phtml'); ?>
</div>